package cn.hema.Client;

import cn.hema.model.BorrowRecord;
import cn.hema.model.Message;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;

/**
 * 商品服务远程调用客户端
 */
@FeignClient(name="relationship-service", fallback=RelationshipServiceFallback.class)
public interface RelationshipServiceClient {
    @PostMapping("/add")
    Message addRE(@RequestBody BorrowRecord borrowRecord);

    @PostMapping("/back")
    Message back(@RequestBody BorrowRecord borrowRecord);
}